#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a,b,c,d,e,f;
	cin>>a>>b>>c;
	f=a,e=c,d=b;
	printf("Before exchange:a=%d,b=%d,c=%d\n",a,b,c);
	printf("After exchange:a=%d,b=%d,c=%d",d,e,f);
    return 0;
}
